﻿

add_library(common)

target_sources(common PRIVATE
    multicast_acceptor.hpp
    multicast_acceptor.cpp
    multicast_sender.hpp
    multicast_sender.cpp

    broadcast_acceptor.hpp
    broadcast_acceptor.cpp
    broadcast_sender.hpp
    broadcast_sender.cpp

    network_interface.hpp
    network_interface.cpp

    system_time_ctl.hpp
    system_time_ctl.cpp

    application.hpp

    json.hpp
    json_object_io.hpp
    time_util.hpp
    result.hpp

    user.hpp
    device_info.hpp
)
target_include_directories(common PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}
)

include(${PROJECT_SOURCE_DIR}/cmake/find_asio.cmake)

target_link_libraries(common PRIVATE
    asio
)

add_subdirectory(test)
